SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

CREATE PROCEDURE [dbo].gspComment_INSERT
(
@parentCommentId AS int = null,
@productId AS int = null,
@content AS nvarchar(4000) = null,
@createdDate AS datetime = null,
@lastModifiedDate AS datetime = null,
@isDeleted AS bit = null
)
AS

INSERT INTO
  [dbo].[Comment]
(
  [ParentCommentId],
  [ProductId],
  [Content],
  [CreatedDate],
  [LastModifiedDate],
  [IsDeleted]
)
VALUES
(
  @parentCommentId,
  @productId,
  @content,
  @createdDate,
  @lastModifiedDate,
  @isDeleted
)

SELECT SCOPE_IDENTITY()


GO
